
import 'package:flutter/material.dart';
import 'package:flutter_structure/common/controllers/state_controller.dart';
import 'package:flutter_structure/common/controllers/navigation_controller.dart';


class GuidePage extends StatefulWidget {
  const GuidePage({super.key});

  @override
  State<GuidePage> createState() => _GuidePageState();
}

class _GuidePageState extends State<GuidePage> {




  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Onboarding')),
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            StateController.to.setFirstLaunch(false); // 更新首次启动标记
            NavigationController.to.replace("/home");
          },
          child: const Text('Finish Onboarding'),
        ),
      ),
    );
  }
}